package org.chaos.sekiro.workorder.app.form.internal.txservice

import org.chaos.sekiro.common.ktorm.ReadOnly
import org.chaos.sekiro.workorder.app.form.internal.dao.ComponentAbilityDao
import org.springframework.stereotype.Service

@Service
@ReadOnly
class ComponentAbilityTxService(
    private val componentAbilityDao: ComponentAbilityDao
) {

    fun findComponentAbility(userId: Long, deleted: Boolean = false) =
        componentAbilityDao.findByUserIdAndDeleted(userId, deleted)
}